//
//  TYCustomConfigModuleImpl.m
//  TYOEMConfig
//
//  Created by lichunhao on 2021/9/7.
//

#import "TYCustomConfigModuleImpl.h"
//#import "TYModuleLaunchTaskRegisterProtocol.h"
//#import "TYLaunchTaskProtocol.h"
//#import <TuyaSmartBaseKit/TuyaSmartBaseKit.h>
#import "TYTheme.h"

@interface TYCustomConfigModuleImpl ()

//@property (nonatomic, strong) TuyaSmartRequest *request;

@end

@implementation TYCustomConfigModuleImpl
//- (NSArray<Class<TYLaunchTaskProtocol>> *)registLaunchTasks {
//    return @[[self class]];
//}
//
//- (void)start {
//    [self requestThemeColor];
//}
//
//- (void)requestThemeColor {
//    [[TuyaSmartRequest new] requestWithApiName:@"coli.aiot.theme.get" postData:nil version:@"1.0" success:^(id result) {
//        if ([result isKindOfClass:NSDictionary.class] && [((NSDictionary *)result).allKeys containsObject:@"color"]) {
//            if (((NSDictionary *)result)[@"color"]) {
//                [[TYTheme theme] cacheDynamicColor:[UIColor ty_themeColorWithHexString:((NSDictionary *)result)[@"color"]]];
//            }
//        }
//    } failure:^(NSError *error) {
//        
//    }];
//}

@end
